<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<table>
	<c:set var="score" value="${requestScope.ranking.scoreTop3}"/>
	<tr>
		<th colspan="3">총점 TOP 3</th>
	</tr>
	<tr>
	<c:forEach var="unit" items="${score}">
		<td>
			<table>
				<tr>
					<td><img alt="" src="../img/logo/${unit.majorunit_logo}"></td>
				</tr>
				<tr>
					<td><a href="review.do?command=review&&majorunit_no=${unit.majorunit_no}">${unit.majorunit_name}</a></td>
				</tr>
				<tr>
					<td>${unit.scoreAvg}</td>
				</tr>
			</table>
		</td>
	</c:forEach>
	</tr>
	
	<c:set var="job" value="${requestScope.ranking.jobTop3}"/>
	<tr>
		<th colspan="3">취업 TOP 3</th>
	</tr>
	<tr>
	<c:forEach var="unit" items="${job}">
		<td>
			<table>
				<tr>
					<td><img alt="" src="../img/logo/${unit.majorunit_logo}"></td>
				</tr>
				<tr>
					<td><a href="review.do?command=review&&majorunit_no=${unit.majorunit_no}">${unit.majorunit_name}</a></td>
				</tr>
				<tr>
					<td>${unit.jobAvg}</td>
				</tr>
			</table>
		</td>
	</c:forEach>
	</tr>
	
	<c:set var="professor" value="${requestScope.ranking.professorTop3}"/>
	<tr>
		<th colspan="3">교수진 TOP 3</th>
	</tr>
	<tr>
	<c:forEach var="unit" items="${professor}">
		<td>
			<table>
				<tr>
					<td><img alt="" src="../img/logo/${unit.majorunit_logo}"></td>
				</tr>
				<tr>
					<td><a href="review.do?command=review&&majorunit_no=${unit.majorunit_no}">${unit.majorunit_name}</a></td>
				</tr>
				<tr>
					<td>${unit.professorAvg}</td>
				</tr>
			</table>
		</td>
	</c:forEach>
	</tr>
	
	<c:set var="facility" value="${requestScope.ranking.facilityTop3}"/>
	<tr>
		<th colspan="3">시설 TOP 3</th>
	</tr>
	<tr>
	<c:forEach var="unit" items="${facility}">
		<td>
			<table>
				<tr>
					<td><img alt="" src="../img/logo/${unit.majorunit_logo}"></td>
				</tr>
				<tr>
					<td><a href="review.do?command=review&&majorunit_no=${unit.majorunit_no}">${unit.majorunit_name}</a></td>
				</tr>
				<tr>
					<td>${unit.facilityAvg}</td>
				</tr>
			</table>
		</td>
	</c:forEach>
	</tr>
	
	<c:set var="scholarship" value="${requestScope.ranking.scholarshipTop3}"/>
	<tr>
		<th colspan="3">장학금 TOP 3</th>
	</tr>
	<tr>
	<c:forEach var="unit" items="${scholarship}">
		<td>
			<table>
				<tr>
					<td><img alt="" src="../img/logo/${unit.majorunit_logo}"></td>
				</tr>
				<tr>
					<td><a href="review.do?command=review&&majorunit_no=${unit.majorunit_no}">${unit.majorunit_name}</a></td>
				</tr>
				<tr>
					<td>${unit.scholarshipAvg}</td>
				</tr>
			</table>
		</td>
	</c:forEach>
	</tr>
	
	<c:set var="awareness" value="${requestScope.ranking.awarenessTop3}"/>
	<tr>
		<th colspan="3">인지도 TOP 3</th>
	</tr>
	<tr>
	<c:forEach var="unit" items="${awareness}">
		<td>
			<table>
				<tr>
					<td><img alt="" src="../img/logo/${unit.majorunit_logo}"></td>
				</tr>
				<tr>
					<td><a href="review.do?command=review&&majorunit_no=${unit.majorunit_no}">${unit.majorunit_name}</a></td>
				</tr>
				<tr>
					<td>${unit.awarenessAvg}</td>
				</tr>
			</table>
		</td>
	</c:forEach>
	</tr>
</table>

</body>
</html>